Codeforces Round 672 , Problem A. Cubes Sorting